package cn.edu.java.stream.C终结操作;

import java.util.Arrays;
import java.util.List;
import java.util.Optional;

public class findAnyDemo {
    public static void main(String[] args) {
        List<String> fruits = Arrays.asList("apple", "banana", "orange");
        Optional<String> anyFruit = fruits.parallelStream().findAny();

        System.out.println(anyFruit);
    }
}
